package demo05;

import sun.font.FontRunIterator;

/**
 * @author JYH
 * @version 1.0
 * @date 2022/11/1 9:39
 */
public class TestSleepDemo{
    public static void main(String[] args) {
        SleepDemo sleepDemo = new SleepDemo();
        sleepDemo.start();
    }

}
class SleepDemo extends Thread{
    @Override
    public void run() {
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        for (int i = 0; i < 10; i++) {
            System.out.println(Thread.currentThread().getName()+"===="+i);
        }
    }
}